package p.ithorns.integration.idempotent;

import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

import javax.annotation.Resource;

/**
 * WebAppConfigurer
 * TODO
 *
 * @author ithorns
 * @version 1.0
 * @date 2019/4/29 18:54
 */
//@Configuration
public class WebAppConfigurer implements WebMvcConfigurer {

//    @Resource
//    private StringRedisTemplate redis;

    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        // 可添加多个
       // registry.addInterceptor(new IdempotentInterceptor(redis)).addPathPatterns("/**");
    }
}
